//Date 2021.12.31

#include <stdlib.h>
#include <stdio.h>

int main(void)
{
    int num;
    printf("Enter a three-digit number: ");
    scanf("%d", &num);
    num = ((num % 10) * 100) + (num / 100) + (num - (num % 10) - (num / 100) * 100);
    printf("The reversal is: %d\n", num);
    system("pause");
    return 0;
}